<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {include file="../application/index/view/common/link.html" /}
</head>
<body>
<!--头部-->
{include file="../application/index/view/common/header.html" /}
<div class="blog-main">
    <div class="layui-container">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md2">
                <div class="panel cate">
                    <ul>
                        <li class="title">
                            <a href="{:url('post/home.index/index')}"><h2><strong>博客人生</strong></h2></a>
                        </li>
                        {volist name="categoryList" id="v"}
                        <li class="{if $v.pid == 0 or $v.lev==1}cate-parent{/if}">
                            <a href="{:url('post/home.index/index',['category'=>$v.id])}">{$v.name}</a>
                        </li>
                        {/volist}
                    </ul>
                </div>
            </div>
            <div class="layui-col-md7">
                {volist name='articleList' id='v'}
                <div class=" panel art">
                    <ol>
                        <li>
                            <div class="art-left">
                                <a href="{:url('post/home.index/content',['id'=>$v.id])}">
                                    <img src="{$v.thumbnail}" alt="">
                                </a>
                            </div>
                            <div class="art-right">
                                <h3 class="art-title">
                                    <a href="{:url('post/home.index/content',['id'=>$v.id])}">
                                        <strong>{$v.post_title}</strong>
                                    </a>
                                </h3>
                                <div class="art-desc">{$v.post_excerpt}</div>
                                <div class="art-attr">
                                    <a href="{:url('index/index/user_jianjie',['user'=>$v.user.id])}" class="author">{$v.user.nickname|default=$v.user.username}</a>
                                    <span class="date">时间：{$v.update_time|date="Y-m-d H:"}</span>
                                    <span class="view">点击：{$v.post_hits}</span>
                                </div>
                            </div>
                            <div class="clear-both"></div>
                        </li>
                    </ol>
                </div>
                {/volist}
                {if $articleList->lastPage()>1}
                <div class=" panel page">
                    {$articleList|raw}
                   <!-- <a href="" class="layui-col-md6">上一页</a>
                    <a href="" class="layui-col-md6">下一页</a>-->
                </div>
                {/if}
            </div>
            <div class="layui-col-md3">
                <div class="panel cate nav-r">
                    <ul>
                        <li class="cate-parent">
                            <a href="">热门点击</a>
                        </li>
                        {volist name="hotArticleList" id="v"}
                        <li class="item">
                            <span class="bj">{if ($key+1)<10}0{$key+1}{else /}{$key+1}{/if}</span>
                            <a href="{:url('post/home.index/content',['id'=>$v.id])}">{$v.post_title}</a>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <div class="panel cate nav-r nav-live">
                    <ul>
                        <li class="cate-parent">
                            <a href="">猜你喜欢</a>
                        </li>
                        {volist name="roundArticle" id="v"}
                        <li class="item">
                            <a href="{:url('post/home.index/content',['id'=>$v.id])}">{$v.post_title}</a>
                        </li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!--底部-->
{include file="../application/index/view/common/footer.html" /}
<!--右侧固定导航区域-->
{include file="../application/index/view/common/righ_fixed.html" /}
</body>
</html>